package com.hongdee.insurance.car.service;

import com.hongdee.insurance.car.entity.TInsuranceCar;

import java.util.Map;

/**
 * 名  称:ITInsuranceCarService
 * 类  型:Interface
 * 描  述:
 * 路  径:com.hongdee.insurance.car.service
 * 作  者: 术洪超
 * 日  期:2017-04-25 10:08
 */
public interface ITInsuranceCarService {

    /**
     * @param start 起始记录
     * @param limit 页面大小
     * @param data  参数数组
     * @return Map
     * @throws Exception
     * @desc 通过 JDBCDao分页查询
     * @author 术洪超
     */
    public Map page(Map data, String start, String limit, String uid) throws Exception;


    /**
     * @param data 要保存的变更历史记录实体
     * @return Map
     * @throws Exception
     * @desc 保存添加的实体内容，通过主键判断
     * @author 术洪超
     */


    public TInsuranceCar saveOrUpdate(TInsuranceCar data, String uid) throws Exception;

    /**
     * 新增保险档案
     * @param data
     * @param uid
     * @return
     * @throws Exception
     */
    public TInsuranceCar saveAdd(TInsuranceCar data, String uid) throws Exception;

    /**
     * @param key 参数数组
     * @return ResultEntity
     * @throws Exception
     * @desc 查询详情
     * @author 术洪超
     */


    public Map info(String key, String value, String uid,String companyId) throws Exception;

    /**
     * 获得车主档案信息
     * @param id
     * @return
     * @throws Exception
     */
    public TInsuranceCar getCarInfo(String id) throws Exception;

    public Map getCarInfo(String id,String vin,String uid)throws Exception;


    public Map getCarInfoByVin(String id,String uid)throws Exception;

    /**
     * 保存并新增客户档案信息
     * @param car
     * @param uid
     * @return
     * @throws Exception
     */
    public TInsuranceCar saveByInsuranceTask(TInsuranceCar car,String uid) throws Exception;
    /**
     * 从CRM车主档案移至车主档案
     * @param carId
     * @param uid
     * @throws Exception
     */
    public void addInsuranceCar(String carId,String uid) throws Exception;

}
